<template>
	<view class="container">
		<view class="title">家庭经济状况</view>
		<view class="options">
			<view class="optionsLeft">申请人</view>
			<view class="optionsRight">收拾</view>
		</view>
		<view class="options">
			<view class="optionsLeft">共同居住人</view>
			<view class="optionsRight">
				<view class="name">叶修</view>
				<view class="kongge"></view>
				<view class="name">张起灵</view>
			</view>
		</view>
		<view class="options">
			<view class="optionsLeft">申请社会救助人口</view>
			<view class="optionsRight">
				<view class="personNum">1人</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		<view class="options">
			<view class="optionsLeft">家庭年赡（抚、扶）养费</view>
			<view class="optionsRight">元</view>
		</view>
		<view class="options">
			<view class="optionsLeft">家庭住址</view>
			<view class="optionsRight">
				<view class="position">18518968960</view>
				<image class="positionIcon" src="/static/anfangDetail/position.png" mode=""></image>
			</view>
		</view>
		<view class="line"></view>
		<view class="title">申请人情况</view>
		<image class="uploadFile" src="/static/kancha/uploadFile.png"></image>
		<view class="options">
			<view class="optionsLeft">姓名</view>
			<input type="text" value="" class="optionsRight" placeholder="请填写姓名"/>
		</view>
		<picker mode="selector" range-key="name" :range="xingbie" @change="selectChange('xingbie',$event)">
			<view class="options">
				<view class="optionsLeft">性别</view>
				<view class="optionsRight">
					<view class="personNum">{{xingbie[xingbieIndex].name}}</view>
					<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
				</view>
			</view>
		</picker>
		<view class="options">
			<view class="optionsLeft">身份证号</view>
			<input type="text" value="" class="optionsRight" placeholder="请填写身份证号"/>
		</view>
		<view class="options">
			<view class="optionsLeft">居住证号</view>
			<input type="text" value="" class="optionsRight" placeholder="请填写居住证号"/>
		</view>
		<picker mode="selector" range-key="name" :range="minzu" @change="selectChange('minzu',$event)">
			<view class="options">
				<view class="optionsLeft">民族</view>
				<view class="optionsRight">{{minzu[minzuIndex].name}}</view>
			</view>
		</picker>
		<picker mode="selector" range-key="name" :range="zhengzhimianmao" @change="selectChange('zhengzhimianmao',$event)">
		<view class="options">
			<view class="optionsLeft">政治面貌</view>
			<view class="optionsRight">
				<view class="personNum">{{zhengzhimianmao[zhengzhimianmaoIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="wenhuachengdu" @change="selectChange('wenhuachengdu',$event)">
		<view class="options">
			<view class="optionsLeft">文化程度</view>
			<view class="optionsRight">
				<view class="personNum">{{wenhuachengdu[wenhuachengduIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="hunyinzhuangkuang" @change="selectChange('hunyinzhuangkuang',$event)">
		<view class="options">
			<view class="optionsLeft">婚姻状况</view>
			<view class="optionsRight">
				<view class="personNum">{{hunyinzhuangkuang[hunyinzhuangkuangIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="jiatingguanxi" @change="selectChange('jiatingguanxi',$event)">
		<view class="options">
			<view class="optionsLeft">家庭关系</view>
			<view class="optionsRight">
				<view class="personNum">{{jiatingguanxi[jiatingguanxiIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="chengxiangshuxing" @change="selectChange('chengxiangshuxing',$event)">
		<view class="options">
			<view class="optionsLeft">城乡属性</view>
			<view class="optionsRight">
				<view class="personNum">{{chengxiangshuxing[chengxiangshuxingIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<view class="wordBox">
			<view class="wordOptions">
				<text>*</text>
				城区是指在市辖区和不设区的市，区、市政府驻地的实际建设连接到的居民委员会和其他区域。
			</view>
			<view class="wordOptions">
				<text>*</text>
				镇区是指在城区以外的县人民政府驻地和其他镇政府驻地的实际建设连接到的居民委员和其他区域。与政府驻地的实际建设不连接，且常住人口在3000人以上的独立的工矿区、开发区等特殊区域及农场、林场的场部驻地视为镇区。
			</view>
			<view class="wordOptions">
				<text>*</text>
				农村指城镇以外的区域。
			</view>
		</view>
		<picker mode="selector" range-key="name" :range="shentizhuangkuang" @change="selectChange('shentizhuangkuang',$event)">
		<view class="options">
			<view class="optionsLeft">身体状况</view>
			<view class="optionsRight">
				<view class="personNum">{{shentizhuangkuang[shentizhuangkuangIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="laodongnengli" @change="selectChange('laodongnengli',$event)">
		<view class="options">
			<view class="optionsLeft">劳动能力</view>
			<view class="optionsRight">
				<view class="personNum">{{laodongnengli[laodongnengliIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="huanbingbingzhong" @change="selectChange('huanbingbingzhong',$event)">
		<view class="options">
			<view class="optionsLeft">患病病种</view>
			<view class="optionsRight">
				<view class="personNum">{{huanbingbingzhong[huanbingbingzhongIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="canjileibie" @change="selectChange('canjileibie',$event)">
		<view class="options">
			<view class="optionsLeft">残疾类别</view>
			<view class="optionsRight">
				<view class="personNum">{{canjileibie[canjileibieIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="canjidengji" @change="selectChange('canjidengji',$event)">
		<view class="options">
			<view class="optionsLeft">残疾等级</view>
			<view class="optionsRight">
				<view class="personNum">{{canjidengji[canjidengjiIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="shenfenleibie" @change="selectChange('shenfenleibie',$event)">
		<view class="options">
			<view class="optionsLeft">身份类别</view>
			<view class="optionsRight">
				<view class="personNum">{{shenfenleibie[shenfenleibieIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="jiuyeqingkuang" @change="selectChange('jiuyeqingkuang',$event)">
		<view class="options">
			<view class="optionsLeft">就业情况</view>
			<view class="optionsRight">
				<view class="personNum">{{jiuyeqingkuang[jiuyeqingkuangIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<picker mode="selector" range-key="name" :range="jiuxueqingkuang" @change="selectChange('jiuxueqingkuang',$event)">
		<view class="options">
			<view class="optionsLeft">就学情况</view>
			<view class="optionsRight">
				<view class="personNum">{{jiuxueqingkuang[jiuxueqingkuangIndex].name}}</view>
				<image class="sanjia" src="/static/kancha/sanjiao.png"></image>
			</view>
		</view>
		</picker>
		<view class="bottomOptions">
			<view class="bottomTitle">保险情况</view>
			<view class="bottomOptionsBox">
				<view class="bottomOptionsBoxIn" @click="chooseBaoxian(item)" v-for="(item,index) in baoxian" :key="index">
					<image class="chooseIcon" v-if="item.isCheck" src="/static/kancha/choose.png"></image>
					<image class="chooseIcon" v-else src="/static/kancha/nochoose.png"></image>
					<view class="bottomOptionsTitle">{{item.name}}</view>
				</view>
			</view>
		</view>
		<view class="button" @click="link">
			提交
		</view>
		<view class="bottom"></view>
	</view>
</template>

<script>
	export default {
		data(){
			return this.dataObject
		},
		methods:{
			link(){
				uni.redirectTo({
					url:'/pages/getInfo/familyMemberInfo'
				})
			},
			selectChange(e,str){
				this[e+'Index'] = str.detail.value
			},
			chooseBaoxian(item){
				item.isCheck = !item.isCheck
			}
		}
	}
</script>

<style>
	page{
		background:white;
	}
</style>
<style scoped>
	.title{
		font-size:26rpx;
		color:#fa5245;
		line-height:1;
		text-align:center;
		padding-bottom:20rpx;
		padding-top:50rpx;
	}
	.options{
		width:670rpx;
		border-radius:6rpx;
		border:1rpx solid #ccc;
		display:flex;
		align-items:center;
		height:86rpx;
		padding:0 40rpx;
		margin:0 auto;
		margin-top:30rpx;
		justify-content:space-between;
	}
	.optionsLeft{
		font-size:30rpx;
		color:#ccc;
	}
	.optionsBottomTitle{
		font-size:30rpx;
		color:#ccc;
	}
	.optionsRight{
		display:flex;
		align-items:center;
		font-size:30rpx;
		text-align: right;
	}
	.optionsBottomBottom{
		font-size:30rpx;
		margin-top:20rpx;
	}
	.position{
		max-width:360rpx;
	}
	.positionIcon{
		width:27rpx;
		height:38rpx;
		margin-left:25rpx;
	}
	.sanjia{
		width:23rpx;
		height:18rpx;
		margin-left:20rpx;
	}
	.kongge{
		width:20rpx;
	}
	.optionsBottomBox{
		width:670rpx;
		border-radius:6rpx;
		border:1rpx solid #ccc;
		padding:20rpx 40rpx;
		margin:0 auto;
		margin-top:30rpx;
	}
	.line{
		height:26rpx;
		background:#f7f7f7;
		margin-top:30rpx;
	}
	.uploadFile{
		width:184rpx;
		height:143rpx;
		margin:0 auto;
		margin-top:10rpx;
	}
	.wordBox{
		padding:20rpx 80rpx;
	}
	.wordBox text{
		color:#fa5245;
	}
	.wordOptions{
		font-size:22rpx;
		color:#ccc;
	}
	.bottomOptions{
		width:670rpx;
		padding:20rpx 40rpx;
		margin:0 auto;
		margin-top:30rpx;
		border:1rpx solid #ccc;
		border-radius:6rpx;
	}
	.bottomTitle{
		color:#ccc;
	}
	.bottomOptionsBox{
		margin-top: 20rpx;
		display: flex;
		flex-wrap:wrap;
	}
	.bottomOptionsBoxIn{
		width:290rpx;
		display:flex;
		align-items:center;
		height:45rpx;
	}
	.chooseIcon{
		width:28rpx;
		height:27rpx;
	}
	.bottomOptionsTitle{
		margin-left:28rpx;
	}
	.button{
		width:570rpx;
		line-height:84rpx;
		text-align:center;
		margin:0 auto;
		margin-top:50rpx;
		border-radius:6rpx;
		background:linear-gradient(90deg,#fa5444,#ff988f);
		font-size:28rpx;
		color:white;
		
	}
	.bottom{
		height:160rpx;
	}
</style>
